package org.ecloud.base.hibernate.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Embeddable;

import org.ecloud.common.constants.StringPool;

import com.fasterxml.jackson.annotation.JsonFormat;

@Embeddable 
@Access(AccessType.PROPERTY)
public class Updatable implements Serializable {

	private static final long serialVersionUID = 6567919507435566421L;

	@Column(name="update_by_", nullable = true, length = 64)
	protected String updateBy;
	@Column(name="update_ip_", nullable = true, length = 15)
	protected String updateIp;
	@Column(name="update_time_", nullable = true)
	@JsonFormat(pattern = StringPool.DATE_FORMAT_DATETIME)
	protected Date updateTime;
    
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	public String getUpdateIp() {
		return updateIp;
	}
	public void setUpdateIp(String updateIp) {
		this.updateIp = updateIp;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
    
}
